// pages/class_image/index1/index.js
var t = getApp(),
  c = t.requirejs("api/index"),
  a = t.requirejs("core");
Page({

  /**
   * 页面的初始数据
   */
  data: {
    route: "class_image",
    menu: t.tabBar,
    menu_show: false,
    show: false,
    default_img:'http://ddfwz.sssvip.net/asmce/yigou/class_icon.png',
    height:160
  },
  //底部导航跳转
  menu_url: function (k) {
    a.menu_url(k, 2);
  },
  onLoad: function (e) {

    a.setting();
    this.setData({
      menu: getApp().tabBar
    })
    
    if (this.data.tabbar_index >= 0) {
      this.setData({
        showtabbar: getApp().tabBar.IsDiDis ? getApp().tabBar.IsDiDis : false,
      })
    }

    this.getlist()
   
  },
  /**
     * 获取相册分类
     */
  getlist: function () {
    var that = this,
      ident_class = 'class_image_1';
    c.Album_Class(ident_class, that);
    // t.get_menu(function (t) {
    //   
    // })
   
  },
  /**
    * 下拉刷新
    */
  onPullDownRefresh: function () {
    this.getlist()
    wx.stopPullDownRefresh();
  },

  /**
   * 用户点击右上角分享
   */
  // onShareAppMessage: function () {
  //
  // }
})